package com.easylinkin.linkappapi.grid.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 当日突发事件情况VO
 *
 * @author kyj
 * @date 2024/5/21 17:51
 */
@ApiModel(description = "当日突发事件情况VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GridReportDayEmergencySituationVO implements Serializable {
    /**
     * 网格id
     */
    @ApiModelProperty(value = "网格id", position = 1)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gridId;

    /**
     * 网格名称
     */
    @ApiModelProperty(value = "网格名称", position = 2)
    private String gridName;

    /**
     * 提交时间
     */
    @ApiModelProperty(value = "提交时间", position = 3)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    /**
     * 当日突发事件情况
     */
    @ApiModelProperty(value = "当日突发事件情况", position = 4)
    private String emergencySituation;
}
